#include "widget.h"

#include <iostream>

using namespace std;

Widget::Widget(void)
{
}

Widget::~Widget(void)
{
}

void Widget::display()
{
	preDisplay();
	doDisplay();
	postDisplay();
}

////////////////////////////////////////////////////////////

void Line::preDisplay()
{
	cout<<"Pre display for Line."<<endl;
}

void Line::doDisplay()
{
	cout<<"I'm a Line."<<endl;
}

void Line::postDisplay()
{
	cout<<"Post display for Line."<<endl;
}

////////////////////////////////////////////////////////////

void Rectangle::preDisplay()
{
	cout<<"Pre display for Rectangle."<<endl;
}

void Rectangle::doDisplay()
{
	cout<<"I'm a Rectangle."<<endl;
}

void Rectangle::postDisplay()
{
	cout<<"Post display for Rectangle."<<endl;
}
